Optimal. Leaf size=115 \[ \frac {2 a^2 (c-d) \cos (e+f x)}{3 d (c+d) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2}}-\frac {2 a^2 (c+5 d) \cos (e+f x)}{3 d (c+d)^2 f \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2841, 21, 2850}
\begin {gather*} \frac {2 a^2 (c-d) \cos (e+f x)}{3 d f (c+d) \sqrt {a \sin (e+f x)+a} (c+d \sin (e+f x))^{3/2}}-\frac {2 a^2 (c+5 d) \cos (e+f x)}{3 d f (c+d)^2 \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 2841
Rule 2850
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{3/2}}{(c+d \sin (e+f x))^{5/2}} \, dx &=\frac {2 a^2 (c-d) \cos (e+f x)}{3 d (c+d) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2}}-\frac {(2 a) \int \frac {-\frac {1}{2} a (c+5 d)-\frac {1}{2} a (c+5 d) \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2}} \, dx}{3 d (c+d)}\\ &=\frac {2 a^2 (c-d) \cos (e+f x)}{3 d (c+d) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2}}+\frac {(a (c+5 d)) \int \frac {\sqrt {a+a \sin (e+f x)}}{(c+d \sin (e+f x))^{3/2}} \, dx}{3 d (c+d)}\\ &=\frac {2 a^2 (c-d) \cos (e+f x)}{3 d (c+d) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2}}-\frac {2 a^2 (c+5 d) \cos (e+f x)}{3 d (c+d)^2 f \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.38, size = 104, normalized size = 0.90 \begin {gather*} -\frac {2 a \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {a (1+\sin (e+f x))} (5 c+d+(c+5 d) \sin (e+f x))}{3 (c+d)^2 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (c+d \sin (e+f x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(344\) vs.
\(2(103)=206\).
time = 0.50, size = 345, normalized size = 3.00
method | result | size |
default | \(-\frac {2 \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {3}{2}} \sqrt {c +d \sin \left (f x +e \right )}\, \left (\sin \left (f x +e \right ) \left (\cos ^{4}\left (f x +e \right )\right ) c \,d^{2}+5 \sin \left (f x +e \right ) \left (\cos ^{4}\left (f x +e \right )\right ) d^{3}-2 \left (\cos ^{4}\left (f x +e \right )\right ) c^{2} d -7 \left (\cos ^{4}\left (f x +e \right )\right ) c \,d^{2}-9 \left (\cos ^{4}\left (f x +e \right )\right ) d^{3}-\sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right ) c^{3}+\sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right ) c^{2} d -11 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right ) c \,d^{2}-13 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right ) d^{3}-3 \left (\cos ^{2}\left (f x +e \right )\right ) c^{3}-5 \left (\cos ^{2}\left (f x +e \right )\right ) c^{2} d +15 \left (\cos ^{2}\left (f x +e \right )\right ) c \,d^{2}+17 \left (\cos ^{2}\left (f x +e \right )\right ) d^{3}-8 c^{3} \sin \left (f x +e \right )-8 c^{2} d \sin \left (f x +e \right )+8 c \,d^{2} \sin \left (f x +e \right )+8 d^{3} \sin \left (f x +e \right )+8 c^{3}+8 c^{2} d -8 c \,d^{2}-8 d^{3}\right )}{3 f \cos \left (f x +e \right )^{3} \left (\left (\cos ^{2}\left (f x +e \right )\right ) d^{2}+c^{2}-d^{2}\right )^{2} \left (c +d \right )^{2}}\) | \(345\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 325 vs.
\(2 (109) = 218\).
time = 0.58, size = 325, normalized size = 2.83 \begin {gather*} -\frac {2 \, {\left ({\left (5 \, c^{2} + c d\right )} a^{\frac {3}{2}} - \frac {{\left (3 \, c^{2} - 19 \, c d - 2 \, d^{2}\right )} a^{\frac {3}{2}} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {2 \, {\left (4 \, c^{2} - 7 \, c d + 9 \, d^{2}\right )} a^{\frac {3}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {2 \, {\left (4 \, c^{2} - 7 \, c d + 9 \, d^{2}\right )} a^{\frac {3}{2}} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {{\left (3 \, c^{2} - 19 \, c d - 2 \, d^{2}\right )} a^{\frac {3}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} - \frac {{\left (5 \, c^{2} + c d\right )} a^{\frac {3}{2}} \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )} {\left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )}}{3 \, {\left (c^{2} + 2 \, c d + d^{2} + \frac {{\left (c^{2} + 2 \, c d + d^{2}\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )} {\left (c + \frac {2 \, d \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}^{\frac {5}{2}} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 335 vs.
\(2 (109) = 218\).
time = 0.35, size = 335, normalized size = 2.91 \begin {gather*} \frac {2 \, {\left ({\left (a c + 5 \, a d\right )} \cos \left (f x + e\right )^{2} + 4 \, a c - 4 \, a d + {\left (5 \, a c + a d\right )} \cos \left (f x + e\right ) - {\left (4 \, a c - 4 \, a d - {\left (a c + 5 \, a d\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{3 \, {\left ({\left (c^{2} d^{2} + 2 \, c d^{3} + d^{4}\right )} f \cos \left (f x + e\right )^{3} + {\left (2 \, c^{3} d + 5 \, c^{2} d^{2} + 4 \, c d^{3} + d^{4}\right )} f \cos \left (f x + e\right )^{2} - {\left (c^{4} + 2 \, c^{3} d + 2 \, c^{2} d^{2} + 2 \, c d^{3} + d^{4}\right )} f \cos \left (f x + e\right ) - {\left (c^{4} + 4 \, c^{3} d + 6 \, c^{2} d^{2} + 4 \, c d^{3} + d^{4}\right )} f + {\left ({\left (c^{2} d^{2} + 2 \, c d^{3} + d^{4}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (c^{3} d + 2 \, c^{2} d^{2} + c d^{3}\right )} f \cos \left (f x + e\right ) - {\left (c^{4} + 4 \, c^{3} d + 6 \, c^{2} d^{2} + 4 \, c d^{3} + d^{4}\right )} f\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}{\left (c + d \sin {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 14.40, size = 387, normalized size = 3.37 \begin {gather*} -\frac {\sqrt {c+d\,\sin \left (e+f\,x\right )}\,\left (\frac {a\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\left (c+5\,d\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,4{}\mathrm {i}}{3\,d^2\,f\,{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}+\frac {a\,{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\left (3\,c-d\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,4{}\mathrm {i}}{d^2\,f\,{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}-\frac {a\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}\,\left (c\,3{}\mathrm {i}-d\,1{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,4{}\mathrm {i}}{d^2\,f\,{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}-\frac {a\,{\mathrm {e}}^{e\,4{}\mathrm {i}+f\,x\,4{}\mathrm {i}}\,\left (c\,1{}\mathrm {i}+d\,5{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,4{}\mathrm {i}}{3\,d^2\,f\,{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}\right )}{{\mathrm {e}}^{e\,5{}\mathrm {i}+f\,x\,5{}\mathrm {i}}-\frac {{\left (c+d\right )}^2\,1{}\mathrm {i}}{{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}-\frac {2\,{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\left (2\,c^2+2\,c\,d+d^2\right )}{d^2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\left (4\,c+d\right )}{d}+\frac {{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}\,{\left (c+d\right )}^2\,\left (2\,c^2+2\,c\,d+d^2\right )\,2{}\mathrm {i}}{d^2\,{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}-\frac {{\mathrm {e}}^{e\,4{}\mathrm {i}+f\,x\,4{}\mathrm {i}}\,{\left (c+d\right )}^2\,\left (4\,c+d\right )\,1{}\mathrm {i}}{d\,{\left (c\,1{}\mathrm {i}+d\,1{}\mathrm {i}\right )}^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________